package com.nycreativity.elecreativity.entity.vo.favorite;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName
import com.nycreativity.elecreativity.entity.dto.SkuSpecificationDTO
import com.nycreativity.elecreativity.entity.vo.BaseVOParam
import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import java.math.BigDecimal

/**
 * <p>
 *
 * </p>
 *
 * @author sxt && ttxxi
 * @since 2021-03-11
 */
@ApiModel("收藏信息查询VO")
class FavoriteVO(
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    var id: Long? = null,

    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
    var goodsId: Long? = null,

    /**
     * 商品sku_id
     */
    @ApiModelProperty("商品sku_id")
    var skuId: Long? = null,

    /**
     * 商品名称
     */
    @ApiModelProperty("商品名称")
    var goodsName: String? = null,

    /**
     * 多张图片逗号分隔
     */
    @ApiModelProperty("多张图片逗号分隔")
    var images: String? = null,

    /**
     * 商品价格
     */
    @ApiModelProperty("商品价格")
    var price: BigDecimal? = null,

    /**
     * 库存量
     */
    @ApiModelProperty("库存量")
    var stock: Int? = null,

    /**
     * 商品具体规格
     */
    @ApiModelProperty("商品具体规格，当cjs不明白传什么的时候请速速联系我")
    var specification: SkuSpecificationDTO? = null,


    ) : BaseVOParam() {

    override fun toString(): String {
        return "FavoriteVO(id=$id, " +
                "goodsId=$goodsId, " +
                "skuId=$skuId, " +
                "goodsName=$goodsName, " +
                "images=$images, " +
                "price=$price, " +
                "stock=$stock, " +
                "specification=$specification)"
    }
}
